@extends('admin.layout.main')
@section('content')
<section class="content-header">
  <h1>
    新增用户
  </h1>
  <ol class="breadcrumb">
    <li><a href="javascript:void(0)"><i class="fa fa-dashboard"></i> 权限管理</a></li>
    <li class="active"><a href="/admin/users">用户管理</a></li>
    <li class="active">新增用户</li>
  </ol>
</section>
            <!-- Main content -->
    <section class="content">
        <!-- Small boxes (Stat box) -->
        <div class="row">
            <div class="col-lg-12 col-xs-6">
                <div class="box">

                    <!-- /.box-header -->
                    <div class="box box-primary">
                        <!-- /.box-header -->
                        <!-- form start -->
                        <form role="form" action="/admin/users/store" method="POST">
                            {{csrf_field()}}
                            <div class="box-body">
                                <div class="form-group {{ $errors->has('name') ? ' has-error' : '' }}">
                                    <label for="exampleInputEmail1">用户名</label>
                                    <input type="text" class="form-control" name="name">
                                </div>
                                @if ($errors->has('name'))
                                    <span class="help-block" style="color:#dd4b39">
                                       {{ $errors->first('name') }}
                                    </span>
                                @endif
                                <div class="form-group {{ $errors->has('password') ? ' has-error' : '' }}">
                                    <label for="exampleInputPassword1">密码</label>
                                    <input type="password" class="form-control" placeholder="Password" name="password">
                                </div>
                                @if ($errors->has('password'))
                                    <span class="help-block" style="color:#dd4b39">
                                       {{ $errors->first('password') }}
                                    </span>
                                @endif
                            </div>
                            <!-- /.box-body -->
                            <div class="box-footer">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>
        <!-- /.content -->
    @endsection    